#include <stdio.h>

int main(void)
{
    int number;

    printf("Enter the value of the number: ");
    scanf("%d", &number);

    if (number < 10)
        printf("The number %d has 1 digits", number);
    else if (number > 9 & number < 100)
        printf("The number %d has 2 digits", number);
    else if (number > 99 & number < 1000)
        printf("The number %d has 3 digits", number);
    else
        printf("The number %d has more than 3 digits", number);
    
    return 0;
}